import request from '@/utils/request'

// 查询会员车辆列表
export function listMemberCar(query) {
  return request({
    url: '/parking/memberCar/list',
    method: 'get',
    params: query
  })
}

// 查询会员车辆详细
export function getMemberCar(id) {
  return request({
    url: '/parking/memberCar/' + id,
    method: 'get'
  })
}

// 新增会员车辆
export function addMemberCar(data) {
  return request({
    url: '/parking/memberCar',
    method: 'post',
    data: data
  })
}

// 修改会员车辆
export function updateMemberCar(data) {
  return request({
    url: '/parking/memberCar',
    method: 'put',
    data: data
  })
}

// 删除会员车辆
export function delMemberCar(id) {
  return request({
    url: '/parking/memberCar/' + id,
    method: 'delete'
  })
}
